package uk.co.biggroup.lotto.syndicate;

public class LuckyNumbers extends DrawNumbers {

	private int matchCounter = 0;

	protected LuckyNumbers(String numbers) {
		super(numbers, 0);		
	}

	public boolean comp(String a, int lcount) {
		boolean match = false;
		int size = LuckyNumbers.this.temp.length;
		for (int i = 0; i < size; i++) {
			if (lcount < 3) {
				if (a.equals(LuckyNumbers.this.temp[i]) && i <= 5) {
					matchCounter++;
					return true;
				}
			} else {
				if (a.equals(LuckyNumbers.this.temp[i])) {
					matchCounter++;
					return true;
				}
			}
		}
		return match;
	}

	public int getMatchCounter() {
		return matchCounter;
	}
}
